<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ include file="/admin/commons/taglib.jsp"%>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>后台管理</title>
    <s:include value="/layouts/kindEditor.jsp"></s:include>
    <script type="text/javascript">
        $(function(){
            $("#order").addClass("active");
            $("#order").find("ul li").eq(0).addClass("active");
        })
    </script>
</head>
<body>
    <div class="admin">
        <div class="panel">
            <div class="panel-head"><strong>订单详情</strong></div>
            <div class="panel-body">
                <table class="table">
                    <tr>
                        <td><strong>购买人：</strong></td>
                        <td >${order.team.name}</td></tr>
                    <tr>
                        <td><strong>订单号：</strong></td>
                        <td >${order.orderNumber}</td></tr>
                    <tr>
                        <td><strong>下单时间：</strong></td>
                        <td >${order.orderTime}</td></tr>
                    <tr>
                        <td><strong>付款时间：</strong></td>
                        <td >${order.payTime}</td></tr>
                    <tr>
                        <td><strong>付款方式：</strong></td>
                        <td >${order.paymethod}</td></tr>
                    <tr>
                        <td><strong>状态：</strong></td>
                        <td >${order.status==1?'待付款':'已付款'}</td></tr>
                    <tr>
                        <td><strong>订单金额：</strong></td>
                        <td >${order.price}</td></tr>
                    <tr>
                        <td><strong>订单类型：</strong></td>
                        <td >${order.type==1?'家教订单':'培训班订单'}</td></tr>
                </table>

            </div>
            <div class="panel-body">
                <s:if test="order.type==1">
                    <table class="table ">
                        <tr>
                            <td><strong>单次时长（小时）：</strong></td>
                            <td >${order.lessonHours}</td></tr>
                        <tr>
                            <td><strong>购买次数：</strong></td>
                            <td >${order.lessonTimes}</td></tr>
                        <tr>
                            <td ><strong>上课时间：</strong></td>
                            <td ></td></tr>
                    </table>

                    <table class="table ">
                        <s:iterator value="order.orderDetails">
                            <tr>
                                <td><strong>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="weekDay"/>：</strong></td>
                                <td ><s:property value="startTime"/>~
                                    <s:property value="endTime"/></td></tr>
                        </s:iterator>
                    </table>
                </s:if>
                <s:else>
                    <table class="table ">
                        <tr>
                            <td><strong>老师：</strong></td>
                            <td >${order.banji.teacherName}</td></tr>
                        <tr>
                            <td><strong>人数：</strong></td>
                            <td >${order.banji.stuNum}</td></tr>
                        <tr>
                            <td><strong>分类：</strong></td>
                            <td >${order.banji.oneClassifyName}--${order.banji.twoClassifyName}</td></tr>
                        <tr>
                            <td><strong>上课时间：</strong></td>
                            <td >${order.banji.weekDate}:${order.banji.startTime}--${order.banji.endTime}</td></tr>
                        <tr>
                            <td><strong>学习周长：</strong></td>
                            <td >${order.banji.studyWeekNum}</td></tr>
                        <tr>
                            <td><strong>开课日期：</strong></td>
                            <td >${order.banji.startDate}</td></tr>
                        <tr>
                            <td><strong>课程描述：</strong></td>
                            <td >${order.banji.content}</td></tr>

                    </table>
                </s:else>
            </div>

        </div>

    </div>


</body>
</html>

